﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TestTasks.ThreadConsistency
{
    public interface IAccount : IComparable<IAccount> /* set order to avoid deadlocks */
    {
        int Number { get; }
        int Amount { get; }

        bool Withdraw(int amount);
        void Deposit(int amount);
    }
}
